package com.xh.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xh.mapper.PosterItemsMapper;
import com.xh.model.table.PosterItem;
import com.xh.service.PosterItemsService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 海报属性明细表 服务实现类
 * </p>
 *
 * @author wen
 * @since 2021-07-08
 */
@Service
public class PosterItemsServiceImpl extends ServiceImpl<PosterItemsMapper, PosterItem> implements PosterItemsService {

    @Override
    public void deleteByPosterId(Long posterId) {
        this.baseMapper.delete(Wrappers.lambdaQuery(PosterItem.class).eq(PosterItem::getPosterId, posterId));
    }
}
